// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
//验证
import './validate/validate.js';
//路由
import router from './router';
//状态管理
import store from './vuex/index';
/**
 * 首页基础信息定义给store赋值
 */
store.state.config = AppConfig;
//过滤
import './basic/js/filter.js';
//所有components下的所有组件都全局注册
import './components/global.js';
//请求
import hpost from './api/http';
Vue.prototype.$ = hpost;
//es6基础
import basic from './basic/js/basic';
Vue.prototype.$basic = basic;

/*Vant组件*/
import { List, PullRefresh } from 'vant';
Vue.use(List).use(PullRefresh);

//自定义指令集
import hdirective from './basic/js/hdirective.js';
Vue.use(hdirective);
import hvalidate from './validate/hvalidate.js';
Vue.use(hvalidate);

// import "./basic/css/basic.scss"
Vue.config.productionTip = false//设置为 false 以阻止 vue 在启动时生成生产提示。

/* eslint-disable no-new */
window.hvue = new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app-box')